package collector.core.xml;

import net.apexcns.core.util.xstream.CdataConverter;

import com.thoughtworks.xstream.annotations.XStreamAlias;
import com.thoughtworks.xstream.annotations.XStreamAsAttribute;
import com.thoughtworks.xstream.annotations.XStreamConverter;


@XStreamAlias("result")
public class Result {
	@XStreamAsAttribute
	protected int retCode;
	@XStreamAsAttribute
	protected String retMsg;
	@XStreamConverter(CdataConverter.class)
	protected String output;

	public Result() {
	}

	public Result(int retCode, String retMsg) {
		this.retCode = retCode;
		this.retMsg = retMsg;
	}

	public String toString() {
		StringBuilder strb = new StringBuilder();
		strb.append("retCode=" + retCode);
		strb.append(", retMsg=" + retMsg);
		strb.append("\n, output=" + output);
		strb.append("");
		return strb.toString();
	}

	public int getRetCode() {
		return retCode;
	}
	public void setRetCode(int retCode) {
		this.retCode = retCode;
	}
	public String getRetMsg() {
		return retMsg;
	}
	public void setRetMsg(String retMsg) {
		this.retMsg = retMsg;
	}

	public String getOutput() {
		return output;
	}

	public void setOutput(String output) {
		this.output = output;
	}


}
